
import * as TYPE from './type.js'

export default {
  [TYPE.ORGANIZATION](state,playload) {
    Object.assign(state, {
      Organization:playload.organization,
    });
  },
  [TYPE.PAYMENT](state,playload) {
    Object.assign(state, {
      payment_list:playload.list,
      payment_total:playload.total,
      payment_current_page:playload.currentPage,
      payment_page_size:playload.pageSize,
    });
  },
  [TYPE.POSTSET](state,playload) {
    Object.assign(state, {
      postSet_list:playload.list,
      postSet_total:playload.total,
      postSet_current_page:playload.currentPage,
      postSet_page_size:playload.pageSize,
    });
  },
  [TYPE.STAFF](state,playload) {
    Object.assign(state, {
      staff_list:playload.list,
      staff_total:playload.total,
      staff_current_page:playload.currentPage,
      staff_page_size:playload.pageSize,
    });
  },
}
